#ifndef MYCOIN_H
#define MYCOIN_H
#include<QTimer>
#include <QPushButton>

class MyCoin : public QPushButton
{
    Q_OBJECT
public:
//    explicit MyCoin(QWidget *parent = nullptr);
        MyCoin(QString btnImg);
        int posX;
        int posY;
        bool flag=true;

        void changeFlag();
        QTimer *timer1;
        QTimer *timer2;
        int min=1;
        int max=8;
        bool isAnimation=false;
        void mousePressEvent(QMouseEvent *e);
        bool isWin=false;


signals:

};

#endif // MYCOIN_H
